Skip to content

Bug fix for csv input field empty#481

Open
KevinyhZou wants to merge 1 commit intoKyligence:rebase_ch/20240127from
KevinyhZou:bug_fix_csv_input_field_string_empty
Open

Bug fix for csv input field empty#481
KevinyhZou wants to merge 1 commit intoKyligence:rebase_ch/20240127from
KevinyhZou:bug_fix_csv_input_field_string_empty

Conversation

@KevinyhZou
Copy link

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix problems as described in ClickHouse#58225

While deserialize csv input, if we set the config input_format_csv_empty_as_default = true, which would set default value to field if the input is empty, and this is also take effect for Nullable(String) type, in this case, if the input is a empty string, then the field will be set default value as NULL, as show below
image

Here it is not suitable,to set NULL when the input is empty for Nullable(String) type, and it is better to set a empty string for the field.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant